package ua.com.softway.db.export;

class JoinExportConstraint {

    private final String table;
    private final String condition;

    public JoinExportConstraint(String table, String condition) {
        this.table = table;
        this.condition = condition;
    }

    public String fromClause() {
        return " join " + table + " on " + condition;
    }
    
    @Override
    public String toString() {
        return fromClause();
    }

}
